package demo3;

public class Dog extends Animal implements IRunAndSwim {
    @Override
    public void run() {
        System.out.println("狗在跑步");
    }

    @Override
    public void swim() {
        System.out.println("狗会狗刨");
    }

    @Override
    public void test() {
        System.out.println("重写test()抽象方法");
    }
}
